from . import Base
from sqlalchemy import Column, Integer, String

class User(Base):
    # 表名
    __tablename__ = "user"
    # 用户id，设置主键，自增
    id = Column(Integer, primary_key=True, autoincrement=True)
    # 用户名，设置为唯一键
    name = Column(String, unique=True)
    # 密码
    password = Column(String)
    # 盐，随机字符串
    salt = Column(String)